package com.redoor.app.stake.workflow.service;

import com.redoor.app.stake.basicdata.model.RegistrationApplyForRedis;
import com.redoor.app.stake.workflow.model.BaseWorkorder;
import com.redoor.app.stake.workflow.model.controllerModel.WorkOrderCriteria;

import java.util.List;

/**
 *  注册码审核工单的接口
 *   
 * @author ZhangMumu  
 * @date 2018/3/30 0030 20:12
 */
public interface RegistrationApplyWorkOrderService {
    /**
     *  生成注册码审核工单
     *    注册码审核工单生成方法,写入字段:
     *      工单类型:targetType
     *      目标uuid:targetUuid(注册码申请表的uuid)
     *      工单类型名称:content
     *      组织机构:orgCode
     *      工单生成人:creatorUuid(注册码申请人uuid)
     * @author ZhangMumu
     * @date 2018/3/30 0030 20:14
     * @param
     * @return
     */
    int create(RegistrationApplyForRedis registrationApplyForRedis);
    /**
     *  批量生成注册码审核工单
     *
     * @author ZhangMumu
     * @date 2018/3/30 0030 20:14
     * @param
     * @return
     */
    int createAll(List<RegistrationApplyForRedis> registrationApplyForRedisList);
    /**  
     *  注册码审核通过  
     *   
     * @author ZhangMumu  
     * @date 2018/3/30 0030 20:15  
     * @param   
     * @return   
     */  
    int accept(WorkOrderCriteria workOrderCriteria);
    /**  
     *  注册码审核拒绝  
     *   
     * @author ZhangMumu  
     * @date 2018/3/30 0030 20:16
     * @param   
     * @return   
     */  
    int reject(WorkOrderCriteria workOrderCriteria);

}
